package com.fly.system.model;

import com.fly.common.model.BaseMoldel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;


@Table(name = "sys_user")
public class UserModel extends BaseMoldel {

	
	//主键
	@Id
	private String id;
	
	//登陆账号
	@Column(name = "login_name")
	private String loginName;
	//密码
	private String password;
	//盐
	private String salt;
	//用户姓名
	@Column(name = "user_name")
	private String userName;
	//邮箱
	private String email;
	//手机号
	private String phone;
	//用户性别（0男 1女 2未知）
	private String sex;
	//头像路径
	private String avatar;
	//帐号状态（0正常 1停用）
	private String status;
	
	
	@Transient
	private List<RoleModel> role;


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getLoginName() {
		return loginName;
	}


	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getSalt() {
		return salt;
	}


	public void setSalt(String salt) {
		this.salt = salt;
	}


	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


















	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getAvatar() {
		return avatar;
	}


	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public List<RoleModel> getRole() {
		return role;
	}


	public void setRole(List<RoleModel> role) {
		this.role = role;
	}

	public UserModel() {
		super();
		// TODO Auto-generated constructor stub
	}

	
	
}
